home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 52 / Amiga Format AFCD52 (Issue 136, May 2000).iso / -screenplay- / hd_installers / -whdload- / whdload_dev / patcher1.04.lha / Patcher1.04 / PARAMQTX / parambane.asm < prev    next >
Assembly Source File  |  1997-05-01  |  2KB  |  69 lines

  1.  
  2. ;This is a simple example with the altering of only 1 file.
  3.  
  4.  
  5.     INCDIR    ASM-ONE:INCLUDE2.0/
  6.  
  7. ;include patcher-include
  8.     INCLUDE    OWN/Patcher.I
  9.  
  10.  
  11. HP    MOVEQ.L    #20,D0        ;do NOT use these 4 bytes!!!
  12.     RTS
  13.     DC.L    TAB        ;pointer to the tagtable
  14.     DC.B    'PTCH'        ;modulerecognition
  15.     DC.B    '$VER:BANE_1.0',0    ;just a versionstring of the parameter
  16.     EVEN            ;skip to next even adress
  17.  
  18. TAB    DC.L    PCH_FILECOUNT,1            ;1 cycle
  19.     DC.L    PCH_ADAPTOR,ADNAME        ;pointer on the adaptor
  20.     DC.L    PCH_DISKNAME,DISKNAMEARRAY    ;pointer on the disknamearray
  21.     DC.L    PCH_FILENAME,FILENAMEARRAY    ;pointer on the filenamearray
  22.     DC.L    PCH_CHANGES,CHANGESARRAY     ;pointer on the changestablesarray
  23.     DC.L    PCH_NAME,PARAMNAME        ;parametername
  24.     DC.L    PCH_MINVERSION,VERSNAME        ;minimum version of THE PATCHER
  25.     DC.L    PCH_DATALENGTH,LENGTHTABLE    ;array of the filelength
  26.     DC.L    0
  27.  
  28.  
  29. ;name of adaptor
  30. ADNAME    DC.B    'Adapted by Egon.',0
  31.     EVEN
  32.  
  33. ;name of the parameter
  34. PARAMNAME    DC.B    'Wizardry VI - Bane of the Cosmic Forge',0
  35.     EVEN
  36.  
  37. ;minimum version of the deprotector required - only as example included,
  38. ;if you need V1.00 its obsolete
  39. VERSNAME    DC.B    'V1.00'        ;MAY NOT CONTAIN HEADING ZEROES
  40.     EVEN                ;MUST CONTAIN 2 NUMBERS AFTER POINT
  41.  
  42. ;array of the disknamespointer - one for each cycle
  43. DISKNAMEARRAY    DC.L    DISK1NAME
  44. ;diskname(s) itself
  45. DISK1NAME    DC.B    'BANE_A',0
  46.     EVEN
  47.  
  48. ;array of the filenamepointer - one for each cycle
  49. FILENAMEARRAY    DC.L    FILE1NAME
  50. ;filename(s) itself
  51. FILE1NAME    DC.B    'BANE',0
  52.     EVEN
  53.  
  54. ;array of the length(s) of the files - mostly for the check of the correct
  55. ;gameversion only
  56. LENGTHTABLE    DC.L    354372
  57.  
  58. ;array of the pointer(s) to the changestable(s)
  59. CHANGESARRAY    DC.L    CHANGE1
  60. ;changestable(s) itself
  61. CHANGE1
  62.     DC.B    $00,$80,$6D,$FE,$04,$2F,$08,$41
  63.     DC.B    $ED,$80,$6E,$03,$17,$D2,$10,$E8
  64.     DC.B    $FF,$D8,$66,$FA,$41,$EC,$C5,$02
  65.     DC.B    $29,$48,$B8,$7E,$20,$5F,$4E,$71
  66.     DC.B    $4E,$71,$4E,$71,$00,$40,$00,$00
  67.     EVEN
  68.  
  69.